package qlsl.androiddesign.adapter.subadapter;

import java.util.List;

import com.qlsl.androiddesign.kuaiwa.R;

import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import qlsl.androiddesign.activity.baseactivity.BaseActivity;
import qlsl.androiddesign.adapter.baseadapter.BaseAdapter;
import qlsl.androiddesign.entity.otherentity.MessageCenter;

public class MessageCenterAdapter extends BaseAdapter<MessageCenter> {

	public MessageCenterAdapter(BaseActivity activity, List<MessageCenter> list) {
		super(activity, list);
	}

	public View getView(int position, View convertView, ViewGroup parent) {
		convertView = getItemView(convertView, R.layout.listitem_message_center);

		TextView tv_text = getView(convertView, R.id.tv_top_center12);
		TextView tv_content = getView(convertView, R.id.tv_context);

		MessageCenter item = getItem(position);

		tv_text.setText("" + item.getTitle());
		tv_content.setText("" + item.getContent());

		return convertView;
	}
}
